const express = require("express");
const router = express.Router();
const validateRequest = require("../middlewares/validationMiddleware"); // 验证请求
// 检验器
const { update_companyInfo_validation } = require("../validators/companyInfo");
const { getCompanyInfo, updateCompanyInfo } = require("../controllers/companyInfo");

router.get("/getCompanyInfo", getCompanyInfo); // 获取公司信息
router.post("/updateCompanyInfo", update_companyInfo_validation, validateRequest, updateCompanyInfo); // 更新公司信息

module.exports = router;
